﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
using System;
namespace KLF.Lib.Browser.DOM.CSS
{
    /// <summary>
    /// Container for wrappers.
    /// </summary>
    public class CSSCustomValue : CSSValue
    {
        #region Constructors

        internal CSSCustomValue(string _name, CSSValue _value)
        {
            ValueName = _name;
            Value = _value;
            cssValueType = CSS_CUSTOM;
        }

        #endregion

        #region Attributes

        public override string cssText
        {
            get
            {
                return String.Format("{0}({1})",
                    ValueName, Value.cssText);
            }
            set
            {
                Value.cssText = value;
            }
        }

        internal string ValueName { get; set; }

        internal CSSValue Value { get; set; }

        #endregion
    }
}
